package com.zlc.atonce.Util;

public class ArrayUtil {
    public static char[][] arrayCopy(char[][] src) {
        char[][] dest = new char[src.length][];
        arrayCopy(src, dest);
        return dest;
    }

    public static void arrayCopy(char[][] src, char[][] dest) {
        for (int i = 0; i < src.length; i++) {
            int length = src[i].length;
            dest[i] = new char[length];
            System.arraycopy(src[i], 0, dest[i], 0, length);
        }
    }
}
